package com.survey.wxapp.controller;

import com.survey.common.annotation.Anonymous;
import com.survey.common.core.controller.BaseController;
import com.survey.common.core.domain.AjaxResult;
import com.survey.system.domain.SurSchool;
import com.survey.system.service.ISurSchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Anonymous
@RestController
@RequestMapping("/wx/school")
public class WxSchoolController extends BaseController {

    @Autowired
    private ISurSchoolService surSchoolService;

    @PostMapping("/list")
    public AjaxResult list(@RequestBody SurSchool surSchool) {
        return AjaxResult.success(surSchoolService.selectSurSchoolList(surSchool));
    }
}
